package com.dtw.ditouwang.presenters;

import com.dtw.ditouwang.models.WebApi;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

class BasePresenter {
    WebApi webApi;

    public BasePresenter(){
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl(WebApi.BaseUrl)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        webApi = retrofit.create(WebApi.class);
    }
}
